package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //添加
    public void add(OrderSetting orderSetting);
    //根据查出的日期来更新
    public void editNumberByOrderDate(OrderSetting orderSetting);
    //查看数据库当前是否有对应的日期
    public long findCountByOrderDate(Date orderDate);

    //简单方法查询预约人数
        List<Map> listmap(String date);

    //查询预约人数,返回的是 OrderSetting
    List<OrderSetting> getOrderSettingByMonth(Map map);

    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
}
